package gui;

import javax.swing.JPanel;
import com.jgoodies.forms.layout.FormLayout;
import com.jgoodies.forms.layout.ColumnSpec;
import com.jgoodies.forms.layout.RowSpec;
import com.jgoodies.forms.factories.FormFactory;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.JScrollPane;

public class AppPanelStoryManager extends JPanel {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 3532086094480804100L;
	public static JButton btnDeleteStory = new JButton("Delete Sory");
	public static JButton btnNewStory = new JButton("New Story");
	public static JButton btnOpenStory = new JButton("Open Story");
	public static JScrollPane scrollPane = new JScrollPane();
	public static JLabel lblSM = new JLabel("Story Mangement");
	
	
	
	/**
	 * Create the panel.
	 */
	public AppPanelStoryManager() {
		setLayout(new FormLayout(new ColumnSpec[] {
				FormFactory.RELATED_GAP_COLSPEC,
				ColumnSpec.decode("default:grow"),
				FormFactory.RELATED_GAP_COLSPEC,
				ColumnSpec.decode("max(75px;default)"),},
			new RowSpec[] {
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				RowSpec.decode("default:grow"),
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,}));
		
		add(lblSM, "2, 2");
		scrollPane.setViewportBorder(null);
		
		add(scrollPane, "2, 4, 1, 7, fill, fill");
		add(btnOpenStory, "4, 4");
		add(btnNewStory, "4, 6");
		add(btnDeleteStory, "4, 8");
	}

}
